unit uMsg;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons;

type
  TfrmMsg = class(TForm)
    Label2: TLabel;
    Label1: TLabel;
    bOK: TBitBtn;
    procedure bOKClick(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure bOKKeyDown(Sender: TObject; var Key: Word;
      Shift: TShiftState);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmMsg: TfrmMsg;

implementation
uses uLogin;

{$R *.dfm}

procedure TfrmMsg.bOKClick(Sender: TObject);
begin
     Close;
end;

procedure TfrmMsg.FormClose(Sender: TObject; var Action: TCloseAction);
begin
    action := caFree;
    frmMsg := nil;
end;

procedure TfrmMsg.bOKKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
    if Key=VK_RETURN then begin
    Key := 0;
    bOK.Click;
    end;
end;

end.
